# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=py3-pg_activity
pkgver=2.3.1
pkgrel=0
pkgdesc="A top like application for PostgreSQL server activity monitoring."
url="https://github.com/julmon/pg_activity"
arch="noarch"
license="PostgreSQL"
depends="py3-psycopg2 py3-psutil"
makedepends="py3-setuptools"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/dalibo/pg_activity/archive/v$pkgver.tar.gz"
builddir="$srcdir/${pkgname/py3-//}-$pkgver"

replaces=py-pg_activity # Backwards compatibility
provides=py-pg_activity=$pkgver-r$pkgrel # Backwards compatibility

build() {
	python3 setup.py build
}

check() {
	python3 setup.py check
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
26c29ec1701cd2eead8314d2a4df247557164231c53323fb3bed12fbf346e14247addfa508af94cee685a2f0084a26c26118896c4c3395e41fb0eee4a4da2d27  py3-pg_activity-2.3.1.tar.gz
"
